package com.gmgx.dao;

import com.gmgx.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IUserDao {
    List<User> queryAllUser();
    List<User> queryUserByLikeName(String userName);
    List<User> queryAllUserAndOrder();
    // 使用另一种方式实现 多表查询 一对多
    List<User> queryAllUserAndOrder2();
    User queryUserByUserId(Integer userId);
    boolean modifyUser(User user);

    public boolean modifyUserName(@Param("userId") Integer userId, @Param("newName") String newName);
}
